﻿// ----------------------------------------------------------------------------------
// <copyright file="GenericConstructorInjectionHelper.cs" company="Christopher Hines">
// Copyright (c) 2012 All Right Reserved
// </copyright>
// <author>Chris Hines</author>
// <date>2012-03-27</date>
// <summary>
//     A generic class for helping test constructor injection
// </summary>
// ----------------------------------------------------------------------------------

namespace Copperfield.Fakes
{
    /// <summary>
    /// A generic class for helping test constructor injection
    /// </summary>
    /// <typeparam name="T">
    /// The type of object
    /// </typeparam>
    public class GenericConstructorInjectionHelper<T>
    {
        /// <summary>
        /// Gets the object value
        /// </summary>
        /// <value>
        /// The object value
        /// </value>
        private readonly T obj;

        /// <summary>
        /// Initializes a new instance of the <see cref="GenericConstructorInjectionHelper{T}"/> class.
        /// </summary>
        /// <param name="obj">
        /// The obj.
        /// </param>
        public GenericConstructorInjectionHelper(T obj)
        {
            this.obj = obj;
        }

        /// <summary>
        /// Returns the object value.
        /// </summary>
        /// <returns>
        /// The object value.
        /// </returns>
        public T GetObject()
        {
            return this.obj;
        }
    }
}
